package com.pxr.oop.overLoading;

public class outchongzai {
    //重载
    public void out() {
        System.out.println("实参"+null);
    }

    public void out(int n) {
        System.out.println("实参"+getClass().getName() );
    }

    public void out(int n,String str) {
        System.out.println("实参");
    }

    public void out(int n,double m,String... stringsr) {
        for (int i = 0; i < stringsr.length ; i++) {
                String str = stringsr[i];
            System.out.println(str);
        }
    }

    public static void main(String[] args) {
        outchongzai outchongzai1 = new outchongzai();
        outchongzai1.out();
        outchongzai1.out(2);
        outchongzai1.out(3,"ddd");
        outchongzai1.out(1,20.1,"dhsuihvs");


    }
}
